package com.itheima.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.springframework.context.annotation.*;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

import javax.sql.DataSource;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2020-08-06 14:13
 * @description
 *
 *  这个类 就要替代咱们那个xml了
 *  @Configuration 表示这个类是spring的配置文件类
 *
 *
 */
    @Configuration

    /**
     * <context:component-scan base-package="com.itheima.dao,com.itheima.service,com.itheima.xyz"></context:component-scan>
     * 跟它一个作用
     */
    @ComponentScan({"com.itheima.dao","com.itheima.service","com.itheima.xyz"})
    /**
     * 把拆出去的配置类 到如核心配置类中
     */
    @Import({DatasourceConfig.class,RedisConfig.class})
    public class SpringConfig {






}
